#pragma once

class CChSSettings: public CObject
{
public:	
	static CChSSettings* Instance();
	static BOOL Initialize();
	static void Uninitialize();
	~CChSSettings(void);

	BOOL ReadSetings();
	BOOL SaveSettings();


	CString HostName	(			) const { return m_strHostName; }
	UINT	Port		(			) const { return m_uPort; }

	void	HostName	(CString val) { m_strHostName = val; }
	void	Port		(UINT val	) { m_uPort = val; }

protected:
	virtual void Serialize(CArchive &ar);

private:
	static CChSSettings* s_pInstance;
	CChSSettings(void);

	//properties
	CString m_strHostName;
	UINT	m_uPort;
};
